package org.nViron.nvPlaces;

//~--- non-JDK imports --------------------------------------------------------

import java.util.ArrayList;
import java.util.HashMap;

import org.nViron.nvCommon.nvPosition;
import org.nViron.nvData.nvDataEntity;

/**
 * Basic interface for data clustering to form places
 * @author Roland Haring <p>
 * <script type="text/javascript" src="http://www.ohloh.net/p/376434/widgets/project_basic_stats.js"></script>
 */
public interface nvClusterer {
    public void balancePlaces(HashMap places);

    public nvPlace findPlaceForEntity(HashMap places, nvDataEntity entity);

    public nvPosition getCenter(ArrayList entities);

    public boolean keepCenter(nvPosition center, nvPosition newCenter);
}



